import request from '@/utils/request'

// 查询中泰ip列表
export function listIp(query) {
  return request({
    url: '/zt/ip/list',
    method: 'get',
    params: query
  })
}

// 查询中泰ip详细
export function getIp(id) {
  return request({
    url: '/zt/ip/' + id,
    method: 'get'
  })
}

// 新增中泰ip
export function addIp(data) {
  return request({
    url: '/zt/ip',
    method: 'post',
    data: data
  })
}

// 修改中泰ip
export function updateIp(data) {
  return request({
    url: '/zt/ip',
    method: 'put',
    data: data
  })
}

// 删除中泰ip
export function delIp(id) {
  return request({
    url: '/zt/ip/' + id,
    method: 'delete'
  })
}
